import request from "@/utils/request";

export function getlistCountapi(params: any) {
    return request.get({ url: "/coupon/listCount", params });
}


export function getcouponlistapi(params: any) {
    return request.get({ url: "/coupon/list", params });
}

export function getcoupondel(params: any) {
    return request.post({ url: "/coupon/delete", params });
}

export function getcategoryapi(params: any) {
    return request.get({ url: "/category/list", params });
}

export function getcouponEdit(params: any) {
    return request.post({ url: "/coupon/create", params });
}

export function getlcouponAdd(params: any) {
    return request.post({ url: "/coupon/edit", params });
}

export function getcgoodslistapi(params: any) {
    return request.get({ url: "/goods/list", params });
}

export function getcsdetailapi(params: any) {
    return request.get({ url: "/coupon/detail?id=" + params });
}

export function getcoupongetCouponImageapi(params: any) {
    return request.get({ url: "/coupon/getCouponImage?id=" + params });
}

export function getcouponshareListapi(params: any) {
    return request.get({ url: "/coupon/shareList?id=" + params });
}

export function getuserListapi(params: any) {
    return request.get({ url: "/user/list", params });
}

export function postlcouponshare(params: any, id: any) {
    return request.post({ url: "/coupon/share?id=" + id, params });
}


